package cn.zhizihua.service;

import cn.zhizihua.pojo.Order;
import cn.zhizihua.query.BaseQuery;
import cn.zhizihua.query.OrderQuery;
import cn.zhizihua.vo.ResultBean;

import java.util.List;

public interface IOrderService {

    ResultBean add(Order order);
    ResultBean update(Order order);
    ResultBean delete(Integer id);
    ResultBean getById(Integer id);
    ResultBean getAll(OrderQuery orderQuery);
    ResultBean batchDel(List<Integer> ids);

    /*
    通过订单编号查询订单详情
     */
    ResultBean getDetailsByOrderId(Integer orderId);

    ResultBean getOrderByUserId(Integer userId);
}
